# 打印九九乘法表
for i in range(1, 10):
    for j in range(1, 10):
        if j <= i:
            # print('{} * {} = {}'.format(j, i, i*j),  end='\t')
            print(f'{i} * {i} = {i*j}',  end='\t')
    print()

# 用户登录验证
# 用户依次输入用户名和密码，然后提交验证
# 用户不存在、密码错误，都显示用户名或密码错误提示
# 错误3次，则退出程序
# 验证成功则显示登录信息

count = 0
while count < 3:
    user = input('Please enter Y name:')
    password = input('Please enter Y password:')
    if (user == 'admin') & (password == '123456'):
        print('Well come')
        break
    else:
        print('Y user or password error prompt')
        count += 1
        if count >= 3:
            print('error more than 3, please contact the admin','count=', count)

# 完成的不错
